import request from './request.js';
let service = request.service;
let formatterUrl = request.formatterUrl;
export default {
  /**销售客户信息列表*/
  customerInfoList(data) {
    return service({
      url: `/adscm/operation/base/customer/select`,
      method: 'post',
      data
    })
  },
  /**新增-insert 修改-update 销售客户信息*/
  insertUpdateCustomerInfo(type,data){
    return service({
      url: `/adscm/operation/base/customer/${type}`,
      method: 'post',
      data
    })
  },
  customerInfoListByName(data){
    return service({
      url: `/adscm/operation/base/customer/selectByName`,
      method: 'get',
      params:data
    })
  },
  /**excel 导入 */
  uploadExcelUrl(){
    return formatterUrl({
       url: `/adscm/operation/plan/planTask/uploadMarketExcel`,
    })
  }
}